<?php 
	header("Content-Type: text/html; charset=utf-8");
	echo $this->doctype(); 
	
	$_name = Zend_Controller_Front::getInstance()->getRequest()->getParam('name');
	$_controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); 
?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
	    <link rel="icon" href="/images/layout/small_logo.jpg" type="image/jpg">
	    <title>ThingsLook</title>
	    <script type="text/javascript" src="/jquery/jquery-1.4.2.min.js"></script>	
	    <?php echo $this->headLink()->appendStylesheet('/css/global.css'); ?>
	</head>
	<?php 
	if ($_controller != "index" && ($_name != "" || $_name != "index")){
		echo "<body>";
	}
	else{
		echo "<body style='background-color: rgb(203,217,254);'>"; 
	}
	if ($_controller != "index" && ($_name != "" || $_name != "index")){ 
		echo $this->render('header.phtml');?>
		<br/>
	<?php 
		echo $this->render('netvigation.phtml');
	}
	?>
	<?php echo $this->layout()->content; ?>
	    <br/>
	<?php echo $this->render('footer.phtml'); ?>
	</body>
</html>